Skip to content

Commit

Permalink
[fix] http_server: X-Forwarded-For header added + some warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Nicolas Glondu committed Dec 13, 2011
1 parent 4c151a9 commit af45f7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions libnet/httpMessages.proto
Expand Up @@ -17,6 +17,7 @@
% You should have received a copy of the GNU Affero General Public License
% along with OPA. If not, see <http://www.gnu.org/licenses/>.
%
% IMPORTANT NOTE: It's a trap! You should change http_messages.proto

%% Request lines :
-raw RGet = "GET"i uri "HTTP/"it v "\r\n"
Expand Down
1 change: 1 addition & 0 deletions libnet/http_messages.proto
Expand Up @@ -68,6 +68,7 @@
-define Referer str = "Referer: " str "\r\n"
-define TE str = "TE: " str "\r\n"
-define User_Agent str = "User-Agent: " str "\r\n"
-define X_Forwarded_For str = "X-Forwarded-For: " str "\r\n"

%%%%%%%%%%%%%%%%%%%%%%%%
%%% Response headers %%%
Expand Down

0 comments on commit af45f7a

Please sign in to comment.