From 7fe84eba9982ebb3bcaa48b7aa28fdd2e130422d Mon Sep 17 00:00:00 2001 From: Jan Lehnardt Date: Wed, 2 Jun 2010 12:54:49 +0000 Subject: trailing whitespace pedantry git-svn-id: https://svn.apache.org/repos/asf/couchdb/trunk@950545 13f79535-47bb-0310-9956-ffa450edef68 --- src/couchdb/couch_httpd.erl | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/couchdb/couch_httpd.erl') diff --git a/src/couchdb/couch_httpd.erl b/src/couchdb/couch_httpd.erl index 6c08847c..d9e91e4b 100644 --- a/src/couchdb/couch_httpd.erl +++ b/src/couchdb/couch_httpd.erl @@ -371,7 +371,7 @@ absolute_uri(#httpd{mochi_req=MochiReq}, 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 -> @@ -601,11 +601,11 @@ start_jsonp(Req) -> try % make sure jsonp is configured on (default off) case couch_config:get("httpd", "allow_jsonp", "false") of - "true" -> + "true" -> validate_callback(CallBack), CallBack ++ "("; - _Else -> - % this could throw an error message, but instead we just ignore the + _Else -> + % this could throw an error message, but instead we just ignore the % jsonp parameter % throw({bad_request, <<"JSONP must be configured before using.">>}) put(jsonp, no_jsonp), @@ -763,9 +763,9 @@ parse_multipart_request(ContentType, DataFun, Callback) -> buffer= <<>>, data_fun=DataFun, callback=Callback}, - {Mp2, _NilCallback} = read_until(Mp, <<"--", Boundary0/binary>>, + {Mp2, _NilCallback} = read_until(Mp, <<"--", Boundary0/binary>>, fun(Next)-> nil_callback(Next) end), - #mp{buffer=Buffer, data_fun=DataFun2, callback=Callback2} = + #mp{buffer=Buffer, data_fun=DataFun2, callback=Callback2} = parse_part_header(Mp2), {Buffer, DataFun2, Callback2}. -- cgit v1.2.3