B2G/gecko/netwerk/test/httpserver/test/test_host.js
/**
 * Utility function to check for a 400 response.
 */
Utility function to check for a 400 response.
Utility function to check for a 400 response .
function check400(data)
{
  var iter = LineIterator(data);
  var firstLine = iter.next();
  do_check_eq(firstLine.substring(0, HTTP_400_LEADER_LENGTH), HTTP_400_LEADER);
}
function check400 ( data ) { var iter = LineIterator ( data ) ; var firstLine = iter . next ( ) ; do_check_eq ( firstLine . substring ( 0 , HTTP_400_LEADER_LENGTH ) , HTTP_400_LEADER ) ; }
Utility function to check for a 400 response.
Utility function to check for a 400 response .
// Status-Line