pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/net/iana-etc/patches add user agent



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5003f613539d
branches:  trunk
changeset: 397060:5003f613539d
user:      christos <christos%pkgsrc.org@localhost>
date:      Sat Jun 15 15:16:30 2019 +0000

description:
add user agent

diffstat:

 net/iana-etc/patches/patch-get.gawk |  9 +++++----
 1 files changed, 5 insertions(+), 4 deletions(-)

diffs (27 lines):

diff -r 44578be3e3fc -r 5003f613539d net/iana-etc/patches/patch-get.gawk
--- a/net/iana-etc/patches/patch-get.gawk       Sat Jun 15 15:02:13 2019 +0000
+++ b/net/iana-etc/patches/patch-get.gawk       Sat Jun 15 15:16:30 2019 +0000
@@ -1,10 +1,11 @@
-$NetBSD: patch-get.gawk,v 1.2 2012/08/25 13:01:42 christos Exp $
+$NetBSD: patch-get.gawk,v 1.3 2019/06/15 15:16:30 christos Exp $
 
 o Add a new parameter to specify the name of the url to get the files from.
   Well, partial name but that is good enough.
+o Add a user-agent, because iana now requires one
 
---- get.gawk   2008-03-05 20:04:18.000000000 +0200
-+++ get.gawk   2012-08-25 13:10:28.000000000 +0300
+--- get.gawk.orig      2008-03-05 13:04:18.000000000 -0500
++++ get.gawk   2019-06-15 11:14:57.692498675 -0400
 @@ -7,7 +7,7 @@
  
  # get.awk: retrieves IANA numbers assignments from iana.org.
@@ -21,7 +22,7 @@
 -    print "Getting http://"; host path file >"/dev/stderr"
 -    printf "GET %s%s HTTP/1.0\r\nHost: %s\r\n\r\n", path, file, host |& socket
 +    print "Getting http://"; host path url "/" url ".txt" >"/dev/stderr"
-+    printf "GET %s%s/%s.txt HTTP/1.0\r\nHost: %s\r\n\r\n", path, url, url, host |& socket
++    printf "GET %s%s/%s.txt HTTP/1.0\r\nHost: %s\r\nUser-Agent: MickeyMouse/1.0\r\n\r\n", path, url, url, host |& socket
      printf "Request sent, waiting for data... " >"/dev/stderr"
  
      NR = 0



Home | Main Index | Thread Index | Old Index