-
if script change "content type" header encoding then greasyspoon converts body into new encoding.
or (may be its better) greasyspoon must return response body without changes (e.g. convert to new encoding in script, and java return body in new content type encoding)
2010-01-08 18:45:58 UTC by sergstager
-
Well, it's both a greasyspoon limitation and a conversion issue. Here is the list of used encoding inside GS:
- http response is converted from initial encoding (here, utf8) to java String (UTF16) for internal processing
- GS scripts are all saved in UTF8
- jruby works in UTF8 => http response is converted in UTF8, processed by your script, then converted back to UTF16 (java String)
[b]-...
2010-01-08 05:50:32 UTC by karelm
-
script for convert codepage on fly (in test use only http://ya.ru)
# ==ServerScript==
# @name iconv
# @status on
# @description convert codepage on the fly
# @include http://ya\.ru/.*
# @responsecode 200
# ==/ServerScript==
require 'rubygems'
require 'iconv'
require 'hpricot'
require 'open-uri'
$KCODE = 'u'.
2010-01-06 13:59:03 UTC by sergstager
-
Solved: SELINUX was enabled...
2009-12-29 02:32:00 UTC by atltechpro
-
I have a fresh install of fedora 12, squid Version 3.1.0.14
along with greasyspoon 1.0.1 installed. Firewall is disabled and I have Squid works without the gs confg added. I have added the sample gs config snip and made the mods to the gs config file. When i attempt a connection I get "ICAP protocol error". All these are running on the same box, I can telnet to localhost:1344 and get a...
2009-12-28 14:05:42 UTC by atltechpro
-
karelm committed revision 67 to the GreasySpoon SVN repository, changing 1 files.
2009-12-22 08:07:09 UTC by karelm
-
hi karelm.
thank you very much.
I tried the "quick fix" and it works. thank you.
if I have time to try the "better fix" will post it here.
thx!
regards.
2009-12-18 07:18:36 UTC by stophi10
-
Hi,
GS is using Apache common daemon (jsvc) to start in a daemon mode. x86_64 was build on rhas5 so it might generate issues with your arch/os.
Quick fix: just delete or rename ***sys/linux/x86_64*** directory in your greasyspoon installation and GS will start using standard java command.
Better fix:
- find jsvc sources in greasyspoon-release-1.0.1-sources.zip or directly from...
2009-12-17 21:10:05 UTC by karelm
-
hello.
greasyspoon 1.0.1
SUSE Linux Enterprise Server 10 (x86_64)
VERSION = 10
PATCHLEVEL = 1
/usr/lib64/jvm/java-1.6.0-sun-1.6.0.u7/jre/bin
if I start greasyspoon I get following error:
Starting greasyspoon.../usr/sbin/rcgreasyspoon: line 82: 9440 Floating point exception$daemon_cmd -wait 10 -jvm server -user $GS_USER -pidfile ${pidpath}${pid} -cp "$GS_CLASSPATH" $GS_OPTIONS...
2009-12-17 17:06:45 UTC by stophi10
-
karelm made 1 file-release changes.
2009-12-16 06:08:02 UTC by karelm