@@ -286,7 +286,7 @@ function toDateString(date)
286
286
{
287
287
var hrs = date . getUTCHours ( ) ;
288
288
var rv = ( hrs < 10 ) ? "0" + hrs : hrs ;
289
-
289
+
290
290
var mins = date . getUTCMinutes ( ) ;
291
291
rv += ":" ;
292
292
rv += ( mins < 10 ) ? "0" + mins : mins ;
@@ -833,10 +833,6 @@ nsHttpServer.prototype =
833
833
// Fire a pending server-stopped notification if it's our responsibility.
834
834
if ( ! this . _hasOpenConnections ( ) && this . _socketClosed )
835
835
this . _notifyStopped ( ) ;
836
- // Bug 508125: Add a GC here else we'll use gigabytes of memory running
837
- // mochitests. We can't rely on xpcshell doing an automated GC, as that
838
- // would interfere with testing GC stuff...
839
- gc ( ) ;
840
836
} ,
841
837
842
838
/**
@@ -869,7 +865,7 @@ const HOST_REGEX =
869
865
// toplabel
870
866
"[a-z](?:[a-z0-9-]*[a-z0-9])?" +
871
867
"|" +
872
- // IPv4 address
868
+ // IPv4 address
873
869
"\\d+\\.\\d+\\.\\d+\\.\\d+" +
874
870
")$" ,
875
871
"i" ) ;
@@ -1080,7 +1076,7 @@ ServerIdentity.prototype =
1080
1076
// Not the default primary location, nothing special to do here
1081
1077
this . remove ( "http" , "127.0.0.1" , this . _defaultPort ) ;
1082
1078
}
1083
-
1079
+
1084
1080
// This is a *very* tricky bit of reasoning here; make absolutely sure the
1085
1081
// tests for this code pass before you commit changes to it.
1086
1082
if ( this . _primaryScheme == "http" &&
@@ -1185,7 +1181,7 @@ function Connection(input, output, server, port, outgoingPort, number)
1185
1181
this . _processed = false ;
1186
1182
1187
1183
/** whether or not 1st line of request has been received */
1188
- this . _requestStarted = false ;
1184
+ this . _requestStarted = false ;
1189
1185
}
1190
1186
Connection . prototype =
1191
1187
{
@@ -1529,7 +1525,7 @@ RequestReader.prototype =
1529
1525
this . _handleResponse ( ) ;
1530
1526
return true ;
1531
1527
}
1532
-
1528
+
1533
1529
return false ;
1534
1530
}
1535
1531
catch ( e )
@@ -2233,7 +2229,7 @@ function maybeAddHeaders(file, metadata, response)
2233
2229
code = status . substring ( 0 , space ) ;
2234
2230
description = status . substring ( space + 1 , status . length ) ;
2235
2231
}
2236
-
2232
+
2237
2233
response . setStatusLine ( metadata . httpVersion , parseInt ( code , 10 ) , description ) ;
2238
2234
2239
2235
line . value = "" ;
@@ -3164,7 +3160,7 @@ ServerHandler.prototype =
3164
3160
dumpn ( "*** error in request: " + errorCode ) ;
3165
3161
3166
3162
this . _handleError ( errorCode , new Request ( connection . port ) , response ) ;
3167
- } ,
3163
+ } ,
3168
3164
3169
3165
/**
3170
3166
* Handles a request which generates the given error code, using the
@@ -3413,7 +3409,7 @@ ServerHandler.prototype =
3413
3409
3414
3410
if ( metadata . queryString )
3415
3411
body += "?" + metadata . queryString ;
3416
-
3412
+
3417
3413
body += " HTTP/" + metadata . httpVersion + "\r\n" ;
3418
3414
3419
3415
var headEnum = metadata . headers ;
@@ -4966,17 +4962,17 @@ nsHttpHeaders.prototype =
4966
4962
var value = headerUtils . normalizeFieldValue ( fieldValue ) ;
4967
4963
4968
4964
// The following three headers are stored as arrays because their real-world
4969
- // syntax prevents joining individual headers into a single header using
4965
+ // syntax prevents joining individual headers into a single header using
4970
4966
// ",". See also <http://hg.mozilla.org/mozilla-central/diff/9b2a99adc05e/netwerk/protocol/http/src/nsHttpHeaderArray.cpp#l77>
4971
4967
if ( merge && name in this . _headers )
4972
4968
{
4973
4969
if ( name === "www-authenticate" ||
4974
4970
name === "proxy-authenticate" ||
4975
- name === "set-cookie" )
4971
+ name === "set-cookie" )
4976
4972
{
4977
4973
this . _headers [ name ] . push ( value ) ;
4978
4974
}
4979
- else
4975
+ else
4980
4976
{
4981
4977
this . _headers [ name ] [ 0 ] += "," + value ;
4982
4978
NS_ASSERT ( this . _headers [ name ] . length === 1 ,
@@ -4999,8 +4995,8 @@ nsHttpHeaders.prototype =
4999
4995
* @returns string
5000
4996
* the field value for the given header, possibly with non-semantic changes
5001
4997
* (i.e., leading/trailing whitespace stripped, whitespace runs replaced
5002
- * with spaces, etc.) at the option of the implementation; multiple
5003
- * instances of the header will be combined with a comma, except for
4998
+ * with spaces, etc.) at the option of the implementation; multiple
4999
+ * instances of the header will be combined with a comma, except for
5004
5000
* the three headers noted in the description of getHeaderValues
5005
5001
*/
5006
5002
getHeader : function ( fieldName )
@@ -5262,7 +5258,7 @@ Request.prototype =
5262
5258
//
5263
5259
// see nsIPropertyBag.getProperty
5264
5260
//
5265
- getProperty : function ( name )
5261
+ getProperty : function ( name )
5266
5262
{
5267
5263
this . _ensurePropertyBag ( ) ;
5268
5264
return this . _bag . getProperty ( name ) ;
@@ -5284,7 +5280,7 @@ Request.prototype =
5284
5280
5285
5281
5286
5282
// PRIVATE IMPLEMENTATION
5287
-
5283
+
5288
5284
/** Ensures a property bag has been created for ad-hoc behaviors. */
5289
5285
_ensurePropertyBag : function ( )
5290
5286
{
0 commit comments