summaryrefslogtreecommitdiff
path: root/db/json.cpp
diff options
context:
space:
mode:
authorAaron <aaron@10gen.com>2009-01-07 10:08:12 -0500
committerAaron <aaron@10gen.com>2009-01-07 10:08:12 -0500
commit601be4dd4f44a1988798e3474b10dbcfa29a9e93 (patch)
tree7be9009d14b82133138a3e8f498601a4e03f9f2b /db/json.cpp
parent6e9a533d67ba43a2d3d40e3e4c74f671470a660e (diff)
downloadmongo-601be4dd4f44a1988798e3474b10dbcfa29a9e93.tar.gz
recv full http request, implement simple rest post handling, refactor dbclient code
Diffstat (limited to 'db/json.cpp')
-rw-r--r--db/json.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/db/json.cpp b/db/json.cpp
index 7a5f0b03d6c..3e70366825d 100644
--- a/db/json.cpp
+++ b/db/json.cpp
@@ -301,7 +301,7 @@ struct binDataBinary {
int len = base64.length();
int pad = 0;
for(; len - pad > 0 && base64[ len - 1 - pad ] == '='; ++pad )
- base64[ len - 1 - pad ] = 'A';
+ base64[ len - 1 - pad ] = 'A';
b.binData = string( binary_t( base64.begin() ), binary_t( base64.end() ) );
b.binData.resize( b.binData.length() - pad );
}