OSDN Git Service
(root)
/
hmh
/
hhml.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
230532e
)
bug fix.
author
visor
<visor@users.sourceforge.jp>
Mon, 12 Nov 2012 13:37:43 +0000
(22:37 +0900)
committer
visor
<visor@users.sourceforge.jp>
Mon, 12 Nov 2012 13:37:43 +0000
(22:37 +0900)
lib/http.cc
patch
|
blob
|
history
diff --git
a/lib/http.cc
b/lib/http.cc
index
db28d7a
..
ea2468e
100644
(file)
--- a/
lib/http.cc
+++ b/
lib/http.cc
@@
-56,7
+56,7
@@
void HTTPResponse::setCookie (const ustring& key, const ustring& val, const ust
ck.append (CharConst ("; path="));
u = apacheAbsolutePath (path);
len = u.length ();
- if (len >
0 && u[len - 1] == '/') {
+ if (len >
1 && u[len - 1] == '/') { // '/'のみはOK。
u.resize (len - 1);
}
ck.append (u);