summaryrefslogtreecommitdiff
path: root/src/couchdb/couch_httpd_db.erl
diff options
context:
space:
mode:
Diffstat (limited to 'src/couchdb/couch_httpd_db.erl')
-rw-r--r--src/couchdb/couch_httpd_db.erl16
1 files changed, 8 insertions, 8 deletions
diff --git a/src/couchdb/couch_httpd_db.erl b/src/couchdb/couch_httpd_db.erl
index 30569ea9..594b6455 100644
--- a/src/couchdb/couch_httpd_db.erl
+++ b/src/couchdb/couch_httpd_db.erl
@@ -1,12 +1,12 @@
% Licensed under the Apache License, Version 2.0 (the "License"); you may not
-% use this file except in compliance with the License. You may obtain a copy of
+% use this file except in compliance with the License. You may obtain a copy of
% the License at
%
% http://www.apache.org/licenses/LICENSE-2.0
%
% Unless required by applicable law or agreed to in writing, software
% distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
-% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
+% WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
% License for the specific language governing permissions and limitations under
% the License.
@@ -781,7 +781,7 @@ db_attachment_req(#httpd{method='GET'}=Req, Db, DocId, FileNameParts) ->
% My understanding of http://www.faqs.org/rfcs/rfc2616.html
% says that we should not use Content-Length with a chunked
% encoding. Turning this off makes libcurl happy, but I am
- % open to discussion.
+ % open to discussion.
% {"Content-Length", integer_to_list(couch_doc:bin_size(Bin))}
]),
couch_doc:bin_foldl(Bin,
@@ -841,14 +841,14 @@ db_attachment_req(#httpd{method=Method}=Req, Db, DocId, FileNameParts)
},
{ok, UpdatedRev} = couch_db:update_doc(Db, DocEdited, []),
#db{name=DbName} = Db,
-
+
{Status, Headers} = case Method of
'DELETE' ->
{200, []};
_ ->
- {201, [{"Location", absolute_uri(Req, "/" ++
- binary_to_list(DbName) ++ "/" ++
- binary_to_list(DocId) ++ "/" ++
+ {201, [{"Location", absolute_uri(Req, "/" ++
+ binary_to_list(DbName) ++ "/" ++
+ binary_to_list(DocId) ++ "/" ++
binary_to_list(FileName)
)}]}
end,
@@ -870,7 +870,7 @@ parse_doc_format(FormatStr) when is_list(FormatStr) ->
_Else -> throw({bad_request, <<"Invalid doc format">>})
end;
parse_doc_format(_BadFormatStr) ->
- throw({bad_request, <<"Invalid doc format">>}).
+ throw({bad_request, <<"Invalid doc format">>}).
parse_doc_query(Req) ->
lists:foldl(fun({Key,Value}, Args) ->