Hello community,

here is the log from the commit of package go-httplib.go for openSUSE:Factory
checked in at Thu Aug 18 00:02:04 CEST 2011.



--------
New Changes file:

--- /dev/null   2010-08-26 16:28:41.000000000 +0200
+++ go-httplib.go/go-httplib.go.changes 2011-06-27 09:41:33.000000000 +0200
@@ -0,0 +1,10 @@
+-------------------------------------------------------------------
+Mon Jun 27 07:41:46 UTC 2011 - gra...@andtech.eu
+
+- patch to build against weekly 2011.06.23
+
+-------------------------------------------------------------------
+Fri Jun 24 12:18:37 UTC 2011 - sasc...@suse.de
+
+- Initial version
+

calling whatdependson for head-i586


New:
----
  go-httplib.go.changes
  go-httplib.go.spec
  httplib.go-0.0.0+git20110624.tar.bz2
  httplib.go-fix-for-weekly-2011.06.23.patch

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ go-httplib.go.spec ++++++
#
# spec file for package go-httplib.go
#
# Copyright (c) 2011 SUSE LINUX Products GmbH, Nuernberg, Germany.
# Copyright (c), 2011, Sascha Peilicke <sasc...@gmx.de>
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.

# Please submit bugfixes or comments via http://bugs.opensuse.org/
#



Name:           go-httplib.go
Version:        0.0.0+git20110624
Release:        1
Summary:        A simple, low-level http library for Go
Group:          Development/Languages/Other
License:        MIT
Url:            https://github.com/hoisie/httplib.go
Source0:        httplib.go-%{version}.tar.bz2
Patch0:         httplib.go-fix-for-weekly-2011.06.23.patch
BuildRoot:      %{_tmppath}/%{name}-%{version}-build
BuildRequires:  go-devel
%{go_provides}
%{go_requires}
%{go_disable_brp_strip_static_archive}

%description
httplib.go is a simple extension of Go's http client that provides keep-alive
connections and generic requests. This is a small usage example:

    //get the google home page
    c := new(httplib.Client)
    resp, err := c.Request ("http://google.com";, "GET", nil, "")
    data := ioutil.ReadAll( resp.Body )
    println(string(data))

%prep
%setup -q -n httplib.go
%patch0 -p1

%build

%install
%{go_make_install}

#%%check
#%%{go_make_test}

%clean
rm -rf %{buildroot}

%files
%defattr(-,root,root,-)
%doc Readme.md LICENSE
%{go_sitearch}/*

%changelog
++++++ httplib.go-fix-for-weekly-2011.06.23.patch ++++++
diff --git a/httplib.go b/httplib.go
index 20ce18e..82e1e6a 100644
--- a/httplib.go
+++ b/httplib.go
@@ -90,7 +90,9 @@ func Get(url string) *HttpRequestBuilder {
     var req http.Request
     req.Method = "GET"
     req.Header = http.Header{}
-    req.UserAgent = defaultUserAgent
+    req.Header = http.Header{  
+        "User-Agent": {defaultUserAgent},
+    }
     return &HttpRequestBuilder{url, &req, nil, map[string]string{}}
 }
 
@@ -98,7 +100,9 @@ func Post(url string) *HttpRequestBuilder {
     var req http.Request
     req.Method = "POST"
     req.Header = http.Header{}
-    req.UserAgent = defaultUserAgent
+    req.Header = http.Header{
+        "User-Agent": {defaultUserAgent},
+    }
     return &HttpRequestBuilder{url, &req, nil, map[string]string{}}
 }
 
@@ -106,7 +110,9 @@ func Put(url string) *HttpRequestBuilder {
     var req http.Request
     req.Method = "PUT"
     req.Header = http.Header{}
-    req.UserAgent = defaultUserAgent
+    req.Header = http.Header{
+        "User-Agent": {defaultUserAgent},
+    }
     return &HttpRequestBuilder{url, &req, nil, map[string]string{}}
 }
 
@@ -114,7 +120,9 @@ func Delete(url string) *HttpRequestBuilder {
     var req http.Request
     req.Method = "DELETE"
     req.Header = http.Header{}
-    req.UserAgent = defaultUserAgent
+    req.Header = http.Header{
+        "User-Agent": {defaultUserAgent},
+    }
     return &HttpRequestBuilder{url, &req, nil, map[string]string{}}
 }
 

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++



Remember to have fun...

-- 
To unsubscribe, e-mail: opensuse-commit+unsubscr...@opensuse.org
For additional commands, e-mail: opensuse-commit+h...@opensuse.org

Reply via email to