|
|
| Author |
Message |
< Yaws mailing list ~ [patch] soap url parsing on R11B-2 |
| Guest |
Posted: Tue Jan 23, 2007 2:36 pm |
|
|
|
Guest
|
Hi
The (undocumented) http_uri:parse/1 return format was changed between
Erlang/OTP R11B-1 and R11B-2. The attached patch handles both formats.
/Fredrik
Post recived from mailinglist |
|
|
| Back to top |
|
| tobbe |
Posted: Tue Jan 23, 2007 2:47 pm |
|
|
|
User
Joined: 19 Jan 2005
Posts: 274
Location: Stockholm, Sweden
|
Nice!
It is applied in CVS now.
Cheers, Tobbe
Fredrik Thulin skrev:
> Hi
>
> The (undocumented) http_uri:parse/1 return format was changed between
> Erlang/OTP R11B-1 and R11B-2. The attached patch handles both formats.
>
> /Fredrik
>
>
> ------------------------------------------------------------------------
>
> diff -ru yaws-1.66.orig/src/yaws_soap_lib.erl yaws-1.66/src/yaws_soap_lib.erl
> --- yaws-1.66.orig/src/yaws_soap_lib.erl 2006-12-12 17:25:15.000000000 +0100
> +++ yaws-1.66/src/yaws_soap_lib.erl 2007-01-23 15:27:30.000000000 +0100
> @@ -245,9 +245,13 @@
> {ok,{{_HTTP,200,_OK}, _Headers, Body}} ->
> case http_uri:parse(URL) of
> {_Method, _Host, _Port, _Path, _Qargs} ->
> + %% Erlang/OTP =< R11B-1
> + {ok, Body};
> + {_Method, _UserInfo, _Host, _Port, _Path, _Qargs} ->
> + %% Erlang/OTP >= R11B-2
> {ok, Body};
> _ ->
> - {error, "failed to retrieve: "++URL}
> + {error, "failed to parse URL: "++URL}
> end;
> {ok,{{_HTTP,RC,Emsg}, _Headers, _Body}} ->
> error_logger:error_msg("~p: http-request got: ~p~n", [?MODULE, {RC, Emsg}]),
> Only in yaws-1.66/src: yaws_soap_lib.erl~
>
>
> ------------------------------------------------------------------------
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share your
> opinions on IT & business topics through brief surveys - and earn cash
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Erlyaws-list mailing list
> Erlyaws-list@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/erlyaws-list
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Erlyaws-list mailing list
Erlyaws-list@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/erlyaws-list
Post recived from mailinglist |
|
|
| Back to top |
|
|
|
All times are GMT
|
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You can attach files in this forum You can download files in this forum
|
|
|