diff options
author | Brad Anderson <brad@cloudant.com> | 2010-07-13 12:23:35 -0400 |
---|---|---|
committer | Adam Kocoloski <adam@cloudant.com> | 2010-08-12 11:18:49 -0400 |
commit | 828219b891a9642b7140ca092fcf913075f7a1ce (patch) | |
tree | b3e3b8dafbea67269de4591347d1eb26270dbd02 /src/chttpd.erl | |
parent | 288da4c5ad0f2d4c6d83240923a69810f462c0b5 (diff) |
whitespace
Diffstat (limited to 'src/chttpd.erl')
-rw-r--r-- | src/chttpd.erl | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/chttpd.erl b/src/chttpd.erl index 42b4ab41..3ba7d265 100644 --- a/src/chttpd.erl +++ b/src/chttpd.erl @@ -14,15 +14,15 @@ -include_lib("couch/include/couch_db.hrl"). -export([start_link/0, stop/0, handle_request/1, config_change/2, - primary_header_value/2, header_value/2, header_value/3, qs_value/2, + primary_header_value/2, header_value/2, header_value/3, qs_value/2, qs_value/3, qs/1, path/1, absolute_uri/2, body_length/1, verify_is_server_admin/1, unquote/1, quote/1, recv/2,recv_chunked/4, error_info/1, parse_form/1, json_body/1, json_body_obj/1, body/1, doc_etag/1, make_etag/1, etag_respond/3, partition/1, serve_file/3, - server_header/0, start_chunked_response/3,send_chunk/2, + server_header/0, start_chunked_response/3,send_chunk/2, start_response_length/4, send/2, start_json_response/2, start_json_response/3, end_json_response/1, send_response/4, - send_method_not_allowed/2, send_error/2, send_error/4, send_redirect/2, + send_method_not_allowed/2, send_error/2, send_error/4, send_redirect/2, send_chunked_error/2, send_json/2,send_json/3,send_json/4]). start_link() -> @@ -268,7 +268,7 @@ absolute_uri(#httpd{mochi_req=MochiReq} = Req, Path) -> Host = case MochiReq:get_header_value(XHost) of undefined -> case MochiReq:get_header_value("Host") of - undefined -> + undefined -> {ok, {Address, Port}} = inet:sockname(MochiReq:get(socket)), inet_parse:ntoa(Address) ++ ":" ++ integer_to_list(Port); Value1 -> @@ -309,7 +309,7 @@ recv_chunked(#httpd{mochi_req=MochiReq}, MaxChunkSize, ChunkFun, InitState) -> % Fun({Length, Binary}, State) % called with Length == 0 on the last time. MochiReq:stream_body(MaxChunkSize, ChunkFun, InitState). - + body_length(Req) -> case header_value(Req, "Transfer-Encoding") of undefined -> |