nitrogen / simple_bridge

A simple, standardized interface library to Erlang HTTP Servers.
MIT License
112 stars 76 forks source link

Fix of Response:file(File) for the Yaws backend. #3

Closed etnt closed 12 years ago

etnt commented 13 years ago

Now the code really return the content of the specified file.

etnt commented 13 years ago

Regarding 07b082d, in latest Yaws the #arg record has been extended. This causes problem when using SimpleBridge since it has its own copy of yaws_api.hrl. This commit removes the dependency by making use of some new Yaws access functions that I just committed to the Yaws repo.