Permalink
Browse files

[fix] http_server: X-Forwarded-For header added + some warning

  • Loading branch information...
1 parent 4c151a9 commit af45f7a69d49bb7f9c287dbaa627bfb47e466998 Nicolas Glondu committed Dec 13, 2011
Showing with 2 additions and 0 deletions.
  1. +1 −0 libnet/httpMessages.proto
  2. +1 −0 libnet/http_messages.proto
@@ -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"
@@ -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 %%%

0 comments on commit af45f7a

Please sign in to comment.