Menu

How to get around DocumentType not text/html?

2002-09-04
2002-09-06
  • Scott Kingdon

    Scott Kingdon - 2002-09-04

    Our developers have a lot on their plates not even counting bugs like this. Somewhere they are not setting the contentType="text/html". This means it is defaulting to text/plain and we are not able to test these pages without using DOM. We need to somehow change the content type from text/plain to text/html. This has to be done on our side because the devs said they will not be able to get to it soon. Does anybody know a work around or a way to change the content type after you have recieved the response?

     
    • Russell Gold

      Russell Gold - 2002-09-04

      Call:

      HttpUnitOptions.setDefaultContentType( "text/html" );

      before your tests

       
    • Scott Kingdon

      Scott Kingdon - 2002-09-06

      YES! Thank you.

       

Log in to post a comment.

Auth0 Logo