mirror of
https://github.com/internetee/registry.git
synced 2025-05-17 01:47:18 +02:00
extracted mod_epp patch into dedicated file
This commit is contained in:
parent
e99c5d7ef5
commit
c48e5c6d95
1 changed files with 30 additions and 0 deletions
30
doc/patches/mod_epp_1.10-rack-friendly.patch
Normal file
30
doc/patches/mod_epp_1.10-rack-friendly.patch
Normal file
|
@ -0,0 +1,30 @@
|
|||
diff --git a/mod_epp.c b/mod_epp.c
|
||||
index 60c0004..bf2b6ab 100644
|
||||
--- a/mod_epp.c
|
||||
+++ b/mod_epp.c
|
||||
@@ -756,7 +756,7 @@ sprintf(content_length, "%lu", strlen(EPP_CONTENT_FRAME_CGI)
|
||||
strlen(conf->raw_frame)
|
||||
+ er->orig_xml_size) : 0));
|
||||
|
||||
-apr_table_set(r->headers_in, "Content-Type", "multipart/form-data; boundary=--BOUNDARY--");
|
||||
+apr_table_set(r->headers_in, "Content-Type", EPP_CONTENT_TYPE_CGI);
|
||||
apr_table_set(r->headers_in, "Content-Length", content_length);
|
||||
apr_table_set(r->headers_in, "Cookie", er->ur->cookie);
|
||||
|
||||
diff --git a/mod_epp.h b/mod_epp.h
|
||||
index d8c463e..7f6e320 100644
|
||||
--- a/mod_epp.h
|
||||
+++ b/mod_epp.h
|
||||
@@ -96,10 +96,10 @@ module AP_MODULE_DECLARE_DATA epp_module;
|
||||
#define EPP_DEFAULT_RC_HEADER "X-EPP-Returncode"
|
||||
|
||||
|
||||
-#define EPP_CONTENT_TYPE_CGI "multipart/form-data; boundary=--BOUNDARY--"
|
||||
-#define EPP_CONTENT_FRAME_CGI "----BOUNDARY--\r\nContent-Disposition: form-data; name=\"frame\"\r\n\r\n"
|
||||
-#define EPP_CONTENT_RAW_CGI "\r\n----BOUNDARY--\r\nContent-Disposition: form-data; name=\"%s\"\r\n\r\n"
|
||||
-#define EPP_CONTENT_CLTRID_CGI "\r\n----BOUNDARY--\r\nContent-Disposition: form-data; name=\"clTRID\"\r\n\r\n"
|
||||
+#define EPP_CONTENT_TYPE_CGI "multipart/form-data; boundary=--BOUNDARY"
|
||||
+#define EPP_CONTENT_FRAME_CGI "----BOUNDARY\r\nContent-Disposition: form-data; name=\"frame\"\r\n\r\n"
|
||||
+#define EPP_CONTENT_RAW_CGI "\r\n----BOUNDARY\r\nContent-Disposition: form-data; name=\"%s\"\r\n\r\n"
|
||||
+#define EPP_CONTENT_CLTRID_CGI "\r\n----BOUNDARY\r\nContent-Disposition: form-data; name=\"clTRID\"\r\n\r\n"
|
||||
#define EPP_CONTENT_POSTFIX_CGI "\r\n----BOUNDARY--\r\n"
|
Loading…
Add table
Add a link
Reference in a new issue