Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions rtcclient/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ class RTCBase(object):
log = logging.getLogger("base.RTCBase")

CONTENT_XML = "text/xml"
    OSLC_CORE_VERSION = "2.0"
CONTENT_URL_ENCODED = "application/x-www-form-urlencoded"
OSLC_CR_XML = "application/x-oslc-cm-change-request+xml"
OSLC_CR_JSON = "application/x-oslc-cm-change-request+json"
Expand Down
1 change: 1 addition & 0 deletions rtcclient/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ def _get_headers(self):
_allow_redirects = False

_headers = {"Content-Type": self.CONTENT_XML}
_headers["OSLC-Core-Version"] = self.OSLC_CORE_VERSION
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OSLC_CORE_VERSION is not defined.

Please move it here from #110.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sorry, don't know how to move it here from #110. This system is so difficult to use.

resp = self.get(self.url + "/authenticated/identity",
verify=False,
headers=_headers,
Expand Down