Browse files

fix badarg error

  • Loading branch information...
1 parent 78d488c commit 0c7971392bb32ed1fd6376980692e855d8cd4441 @benoitc benoitc committed Dec 8, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 apps/couch_httpd/src/couch_httpd_protocol.erl
View
2 apps/couch_httpd/src/couch_httpd_protocol.erl
@@ -113,7 +113,7 @@ handle_invalid_request(State) ->
-spec handle_invalid_request(term(), term(), term()) -> no_return().
handle_invalid_request(#hstate{transport=Transport, socket=Socket}=State,
Request, RevHeaders) ->
- Req = new_request(mochiweb_socket(State), Request, RevHeaders),
+ Req = new_request(State, Request, RevHeaders),
Req:respond({400, [], []}),
Transport:close(Socket),
exit(normal).

0 comments on commit 0c79713

Please sign in to comment.