Dolda2000 GitWeb
/
jagi.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Allow jagidir $use directives to specify absolute paths.
[jagi.git]
/
src
/
jagi
/
scgi
/
Scgi.java
diff --git
a/src/jagi/scgi/Scgi.java
b/src/jagi/scgi/Scgi.java
index
5e219b0
..
f7f57d2
100644
(file)
--- a/
src/jagi/scgi/Scgi.java
+++ b/
src/jagi/scgi/Scgi.java
@@
-26,9
+26,8
@@
public class Scgi {
return(data);
}
return(data);
}
- public static Map<ByteBuffer, ByteBuffer>
readhead(ReadableByteChannel sk) throws IOException
{
+ public static Map<ByteBuffer, ByteBuffer>
splithead(ByteBuffer ns)
{
Map<ByteBuffer, ByteBuffer> ret = new HashMap<>();
Map<ByteBuffer, ByteBuffer> ret = new HashMap<>();
- ByteBuffer ns = readns(sk);
ByteBuffer k = null;
for(int i = 0, p = 0; i < ns.limit(); i++) {
if(ns.get(i) == 0) {
ByteBuffer k = null;
for(int i = 0, p = 0; i < ns.limit(); i++) {
if(ns.get(i) == 0) {
@@
-45,4
+44,8
@@
public class Scgi {
}
return(ret);
}
}
return(ret);
}
+
+ public static Map<ByteBuffer, ByteBuffer> readhead(ReadableByteChannel sk) throws IOException {
+ return(splithead(readns(sk)));
+ }
}
}