Skip to content

Commit

Permalink
change to 0 not 504
Browse files Browse the repository at this point in the history
  • Loading branch information
nullorvoid committed Dec 15, 2016
1 parent f71b113 commit ff26cce
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion HTTPRequest/HTTPRequest.DotNet.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public HttpRequest(string url, string contentType, byte[] postData, Dictionary<s
// Start timeout timer
timeoutTimer = new Timer((object state) => {
this.Abort();
cb(new HttpRequestException("Request timed out", 504), null);
cb(new HttpRequestException("Request timed out", 0), null);
}, null, timeout, Timeout.Infinite);

// Initialize request instance
Expand Down
2 changes: 1 addition & 1 deletion HTTPRequest/HTTPRequest.Unity.cs
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ private IEnumerator WaitLoop()
{
// Timed out abort the request with timeout error
Abort();
cb(new HttpRequestException("Request timed out", 504), null);
cb(new HttpRequestException("Request timed out", 0), null);
yield break;
}

Expand Down

0 comments on commit ff26cce

Please sign in to comment.